package com.jiancong.config;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;


@Component
@ConfigurationProperties(prefix = "oss")
public class OssConfig {
    private static String accessKeyId;
    private static String accessKeySecret;
    private static String bucket;
    private static String endpoint;

    public static String getAccessKeyId() {
        return accessKeyId;
    }

    public void setAccessKeyId(String accessKeyId) {
        OssConfig.accessKeyId = accessKeyId;
    }

    public static String getAccessKeySecret() {
        return accessKeySecret;
    }

    public void setAccessKeySecret(String accessKeySecret) {
        OssConfig.accessKeySecret = accessKeySecret;
    }

    public static String getBucket() {
        return bucket;
    }

    public void setBucket(String bucket) {
        OssConfig.bucket = bucket;
    }

    public static String getEndpoint() {
        return endpoint;
    }

    public void setEndpoint(String endpoint) {
        OssConfig.endpoint = endpoint;
    }


//    OSS ossClient = new OSSClientBuilder().build(endpoint,accessKeyId,accessKeySecret);
}
